﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;

namespace IDAL
{
   public interface IOrderDAL
    {
        /// <summary>
        /// 显示所有订单
        /// </summary>
        /// <returns></returns>
        List<OrderModel> OrderShow();

        /// <summary>
        /// 根据订单编号来查询数据
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        List<OrderModel> SelectShow(string name);


        /// <summary>
        /// 根据订单编号来修改状态
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        int OrderUpt(string name);


        /// <summary>
        /// 根据下拉框选择来查询
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        List<OrderModel> SelectLike(string name);


        /// <summary>
        /// 根据状态来修改数据
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        int OrderFull(string name);
       /// <summary>
       /// 添加订单
       /// </summary>
       /// <param name="order"></param>
       /// <returns></returns>
        int AddOrder(OrderModel order);

        int AddOrder(string[] name, string[] price, string[] ids, string[] numbers, string[] total, string address, string tell, string method, string paymethod, int zong,string[] url);
    }
    
}
